package com.we823.cms.repository.service.sys;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Service;

import com.we823.cms.model.sys.Config;
import com.we823.cms.repository.dao.sys.ConfigMapper;
import com.we823.cms.repository.service.AbstractBaseService;

@Service("configService")
@Scope("prototype")
public class ConfigService extends AbstractBaseService<Config, Integer> {

	private ConfigMapper configMapper = null;
	
	@Autowired
	public ConfigService(ConfigMapper configMapper) {
		super(configMapper);
		this.configMapper = configMapper;
	}

	public List<Config> findByIsCurrent(Integer iscurrent){
		Config config = new Config();
		config.setIsCurrent(iscurrent);
		return configMapper.select(config);
	}
}
